package in_place_algorithm

import "fmt"

func test1(nums []int) []int {

	for k, v := range nums {
		if k+1 > len(nums) {
			break
		}
		next := nums[k+1]
		fmt.Println(v, next)
	}

	return nums
}
